/*
 * $Id: AbstractCfgAutoscWhitelist.java,v 1.4 2012/02/15 23:07:52 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

/**
 * AbstractCfgAutoscWhitelist entity provides the base persistence definition of
 * the CfgAutoscWhitelist entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractCfgAutoscWhitelist implements
		java.io.Serializable {

	// Fields

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 3285325054321863709L;
	private String emailId;
	private String isAllowed = "Y";
	private String emailType;
	private Long requestDefnId;

	public static final String IS_ALLOWED = "Y";
	public static final String IS_NOT_ALLOWED = "N";
	
	public static final String SSO_TYPE = "SSO";
	public static final String EMAIL_TYPE = "EMAIL";

	// Constructors

	/** default constructor */
	public AbstractCfgAutoscWhitelist() {
	}

	/** full constructor */
	public AbstractCfgAutoscWhitelist(String isAllowed) {
		this.isAllowed = isAllowed;
	}

	// Property accessors

	public String getEmailId() {
		return this.emailId;
	}

	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}
	public void setEmailId(Integer emailId) {
		this.emailId = emailId.toString();
	}
	public String getIsAllowed() {
		return this.isAllowed;
	}

	public void setAllowed() {
		this.isAllowed = IS_ALLOWED;
	}

	public void setNotAllowed() {
		this.isAllowed = IS_NOT_ALLOWED;
	}

	public void setIsAllowed(String isAllowed) {
		this.isAllowed = isAllowed;
	}

	public String getEmailType() {
		return emailType;
	}

	public void setEmailTypeEmail() {
		this.emailType = EMAIL_TYPE;
	}

	public void setEmailTypeSSO() {
		this.emailType = SSO_TYPE;
	}

	public void setEmailType(String emailType) {
		this.emailType = emailType;
	}

	public Long getRequestDefnId() {
		return requestDefnId;
	}

	public void setRequestDefnId(Long requestDefnId) {
		this.requestDefnId = requestDefnId;
	}
	public void setRequestDefnId(int i) {
		this.setRequestDefnId(new Long( i));
	}

}
